home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Atari Compendium
/
The Atari Compendium (Toad Computers) (1994).iso
/
files
/
prgtools
/
gnustuff
/
tos
/
881
/
src6.zoo
/
a.c
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
C/C++ Source or Header
|
1991-09-24
|
303 b
|
17 lines
#include <math.h>
#include <stdio.h>
unsigned long dd[2];
#define D (*((double*)&dd[0]))
main() {
double a=2.4, b=2.5, c=2.6, d, e;
d=modf(a,&e);
printf(" %f %f\n",d,e);
d=modf(b,&e);
printf(" %f %f\n",d,e);
d=modf(c,&e);
printf(" %f %f\n",d,e);
D = 0.0;
printf(" %lx %lx\n", dd[0],dd[1]);
}